package com.fyy.content.api;

import com.fyy.content.model.dto.CourseCategoryTreeDTO;
import com.fyy.content.model.vo.CourseCategoryTreeVO;
import com.fyy.content.service.CourseCategoryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @author fyy
 * @version 1.0
 * @description
 * @date 2024/7/13 10:24
 */

@RestController
public class CourseCategoryController {

    @Autowired
    private CourseCategoryService courseCategoryService;

    @GetMapping("/course-category/tree-nodes")
    public List<CourseCategoryTreeDTO> queryTreeNodes() {
        return courseCategoryService.queryTreeNodes("1");
    }

}
